package com.bum.api.core.util.text;

import org.apache.commons.lang.StringUtils;

public class VietChar {
	private static final String UNSIGN 		= "aaaaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAddDDeeeeeeeeeeeeEEEEEEEEEEEEiiiiiiIIIIIIooooooooooooooooooOOOOOOOOOOOOOOOOOOuuuuuuuuuuuuUUUUUUUUUUUUyyyyyyYYYYYY";
	private static final String FULL_SIGN 	= "âấẩầậẫăắẳằặẵaáảàạãÂẤẨẦẬẪĂẮẲẰẶẴAÁẢÀẠÃdđDĐêếểềệễeéẻèẹẽÊẾỂỀỆỄEÉẺÈẸẼiíỉìịĩIÍỈÌỊĨoóỏòọõôốổồộỗơớởờợỡOÓỎÒỌÕÔỐỔỒỘỖƠỚỞỜỢỠuúủùụũưứửừựữUÚỦÙỤŨƯỨỬỪỰỮyýỷỳỵỹYÝỶỲỴỸ";
	public static String clearVNChars(String string) {
		return StringUtils.replaceChars(string, FULL_SIGN, UNSIGN);
	}	
}